package scaladay2

object TuppleDemo {
  def main(args: Array[String]): Unit = {
    val t = (1, "hu", 344.45f, 4545.88)

    //println(t.productIterator())
    println(t._1)
    println(t._2)
    println(t._3)
    println(t._4)
    //println(t._5)

    val arr = Array(("Tom", 45), ("jerry", 95))

    println(arr.toMap)

    val str= Array("yu", "nan", "hh")
    val value = Array(1,2, 3, 4, 5)
    val tuples = str.zip(value)
    println(tuples.toBuffer)
    println(tuples.toMap)
  }
}
